<template>
  <div class="upfile">
    <div class="upfile-container">
      <div class="upfile-title">
        <span class="page-name">文件列表</span>
      </div>
      <div class="upfile-header">
        <div class="btn-design btn-upfile">
          <i class="icon icon-upfile"></i>上传文件
        </div>
        <div class="input-design">
          <span>文件名称:</span>
          <input type="text">
        </div>
        <div class="select-design">
          <select>
            <option>选择文件类别</option>
            <option>脚本</option>
            <option>图片</option>
            <option>配置文件</option>
            <option>账号</option>
            <option>视频</option>
            <option>其他</option>
          </select>
        </div>
        <div class="btn-search">搜索</div>
      </div>
      <div class="upfile-body">
        <div class="table-scroll">
          <table class="table-stripe table-cover">
            <thead>
              <tr>
                <th>
                  <input type="checkbox">
                </th>
                <th>ID</th>
                <th>文件名称</th>
                <th>上传位置</th>
                <th>文件类别</th>
                <th>上传时间</th>
                <th>管理</th>
              </tr>
            </thead>
            <tbody>
              <tr v-for="list in lists">
                <td>
                  <input type="checkbox">
                </td>
                <td>scascscscscs</td>
                <td>wsssssssssc</td>
                <td>scaascascssac</td>
                <td>wwsacascsacaww</td>
                <td>wascascsaww</td>
                <td>wcsacascww</td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td colspan="8">共 0 条记录 首页 上一页 下一页 尾页 页次:1/0页 50条/页</td>
              </tr>
            </tfoot>
          </table>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      showPage: "my-app",
      lists: [{}, {}, {}]
    };
  },
  created() {
    console.log("----------upfilePage----------");
  },
  methods: {
    changePage(page) {
      this.showPage = page;
    }
  }
};
</script>

<style lang="scss" scoped>
$primary: #007bff;
$white-light: #f5f6f7;
$white-hover: #fafbfc;
$gray-border: #c3c6c9;
.upfile,
.upfile-container {
  position: relative;
  height: 100%;
  width: 100%;
}
.upfile-title {
  width: 100%;
  padding: 5px 10px;
  box-sizing: border-box;
  border-bottom: 1px solid $gray-border;
}
.upfile-header {
  width: 100%;
  padding: 0px 10px 5px;
  box-sizing: border-box;
  border-bottom: 1px solid $gray-border;
}
.btn-design {
  display: inline-block;
  cursor: pointer;
  padding: 0 5px;
  font-size: 14px;
  margin-top: 8px;
  margin-right: 5px;
  border-radius: 5px;
  background-color: $white-light;
  border: 1px solid $gray-border;
  &:hover {
    background-color: $white-hover;
  }
}
.icon {
  line-height: 20px;
  margin-right: 2px;
  margin-left: 2px;
  &:before {
    font-size: 14px;
  }
}
.icon-upfile:before {
  content: "\e775";
}
.btn-upfile {
  margin-right: 50px;
}
.input-design {
  margin-top: 8px;
  display: inline-block;
  input {
    padding: 0 5px;
    width: 150px;
    border: 1px solid;
    height: 28px;
    vertical-align: middle;
    border-radius: 3px;
  }
}
.select-design {
  margin-top: 7px;
  display: inline-block;
  select {
    height: 28px;
    border-radius: 3px;
    vertical-align: middle;
  }
}
.btn-search {
  display: inline-block;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 15px;
  margin-top: 4.5px;
  margin-right: 5px;
  border-radius: 5px;
  background-color: $white-light;
  border: 1px solid $gray-border;
  &:hover {
    background-color: $white-hover;
  }
}
.upfile-body {
  padding: 10px 10px 150px;
  height: 100%;
  width: 100%;
  overflow: auto;
}
</style>